<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
    <a class="navbar-brand" href="/">Маршрутизация ВКМ</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarsExampleDefault">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item {% if request.resolver_match.view_name == 'files' %}active{% endif %}">
                <a class="nav-link" href="{% url 'files' %}">Загрузка файлов с заказами</a>
            </li>
            <li class="nav-item {% if request.resolver_match.view_name == 'orders' %}active{% endif %}">
                <a class="nav-link" href="{% url 'orders' %}">Подготовка списка встреч</a>
            </li>
            <li class="nav-item {% if request.resolver_match.view_name == 'routing' %}active{% endif %}">
                <a class="nav-link" href="{% url 'routing' %}">Построение маршрутов</a>
            </li>
            <li class="nav-item {% if request.resolver_match.view_name == 'routes' %}active{% endif %}">
                <a class="nav-link" href="{% url 'routes' %}">Просмотр маршрутов</a>
            </li>
            <li class="nav-item {% if request.resolver_match.view_name == 'route_sheets' %}active{% endif %}">
                <a class="nav-link" href="{% url 'route_sheets' %}">Выгрузка маршрутных листов</a>
            </li>
            <li class="nav-item {% if request.resolver_match.view_name == 'logout' %}active{% endif %}">
                <a class="nav-link" href="{% url 'logout' %}">Выйти</a>
            </li>
        </ul>
    </div>
</nav>
